package com.corechina.apex_osswords.domain.dao;

import com.corechina.apex_osswords.domain.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.corechina.apex_osswords.domain.vo.SysMenuVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 菜单表 Mapper 接口
 * </p>
 *
 * @author cc
 * @since 2022-03-07
 */
@Component
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenuVo> queryMenuByUserId(@Param("userId") Integer userId);

}
